"""
# @Time : 2023/8/13 17:50
# @Author : goose
"""
from base.utils import BrowserDriver
from page.page_home import HomeOperation
from page.page_register import RegisterOperation
import time
from base.connect_DB import ConnectDB
import pytest


class TestRegister:
    #
    def test_register_success(self):
        # self.home_page = HomeOperation()
        # self.register_page = RegisterOperation()
        #
        self.conn = ConnectDB.exec_sql("select user_id ,mobile from `tpshop2.0`.tp_users;")
        print(self.conn)
        self.test = self.conn[0]
        print(len(self.conn))
        i = 0
        while i <= len(self.conn):
            pass

        print(self.conn[0])
        print(self.test[1])
        ConnectDB.close_cursor()
        ConnectDB.close_conn()
        # TODO 去学python基础语法，然后再来

        """
        username = 001
        
        tuple = ((1,2,3),(4,5,6),(7,8,9))
        tuple_0 = tuple[0]
        list_0 = tuple_0[0]
        list.append.list_0
        
        
        while: 循环包裹，直至username 不在list
            if username in list:
                username += 1
                return username      
        """


        time.sleep(2)
        BrowserDriver.quit_driver()



# , iphone_username, iphone_verify, iphone_password, iphone_password2, iphone_referrer

